Skip to content

add PROJECT_NAME to environmental variables as an option#122

Open
ghost wants to merge 1 commit intomasterfrom
unknown repository
Open

add PROJECT_NAME to environmental variables as an option#122
ghost wants to merge 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Aug 23, 2018

@jkrup I've added some code that I need to change the project name in the env variables. Please let me know if this is something that works for you. Thanks. B

@ghost
Copy link
Copy Markdown
Author

ghost commented Aug 23, 2018

@jkrup This is also a bit of a test for my next project: to pass additional options like now.features.cloud

So, let me know if this initial pull request works for you (and if I did everything correctly)


export const getProjectName = async () => {
const environmentVariables = await getEnvironmentVariables();
return getEnvironmentVariable('PROJECT_NAME', environmentVariables)
Copy link
Copy Markdown
Owner

@jkrup jkrup Aug 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing semicolon ; here (you can run npm run lint to catch this stuff easily)

Copy link
Copy Markdown
Owner

@jkrup jkrup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks so much for the contribution. There's just that one linter error.

Also, before merging, we'll want to edit the README.md to include information about this new flag. I can probably get to that later this week, but if you'd like to do that as well that'd be fantastic.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant